<div style="min-height: 300px; padding-bottom: 20px; width: 98%; float: left" class="portlet x12">
	<div class="portlet-header"><h4>B&#224;i vi&#7871;t</h4></div>			
		<div class="portlet-content" >		
			<form class="form label-inline" id="form_detail" method="post" action="#">
			<table style="width:85%; padding-left:160px;">
				<tr>
					<td style="width:15%;">Ti&#234;u &#273;&#7873;</td>
					<td><?php echo $detail->subject; ?></td>
				</tr>
				<tr>
					<td style="width:15%;">N&#7897;i dung</td>
					<td><?php echo $detail->post_content; ?></td>
				</tr>
			</table>				

				<input type="hidden" name="id" id="id" value="<?php echo $detail->id;?>">				
				<div class="buttonrow" align="center">
					<input type="button" class="btn btn-orange" onclick="edit(<?php echo $detail->id;?>)" id="Edit" value="Edit">					
					<input type="button" class="btn btn-grey" id="Back" value="Back">					
				</div>
		</form>
		<br><br>		
	</div>
</div>
<script>
$(document).ready(function(){
	$('.btn-grey').live('click',function(){				
		 parent.history.back();
	     return false;
	});
//	$('.btn').click(function(){					
//		$('#form_edit_add').submit();		
//	});	
});
function edit(id){
	window.location="<?php echo base_url();?>admin/posts/edit/"+id;
}

</script>